package com.vids.model.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 采集设备状态表
 * </p>
 *
 * @author ly
 */
@TableName("t_ape_status")
public class ApeStatus extends Model<ApeStatus> {

    @JsonIgnore
    @TableId(value = "id")
    private String id;
    /**
     * 系统id
     */
    @TableField("ape_id")
    private String ApeID;
    /**
     * 当前时间
     */
    @TableField("`current_time`")
    private Date CurrentTime;
    /**
     * 是否在线
     */
    @TableField("is_online")
    private String IsOnline;

    @JsonProperty("id")
    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    @JsonProperty("ApeID")
    public String getApeID() {
	return ApeID;
    }

    public void setApeID(String apeID) {
	ApeID = apeID;
    }

    @JsonProperty("CurrentTime")
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    public Date getCurrentTime() {
	return CurrentTime;
    }

    public void setCurrentTime(Date currentTime) {
	CurrentTime = currentTime;
    }

    @JsonProperty("IsOnline")
    public String getIsOnline() {
	return IsOnline;
    }

    public void setIsOnline(String isOnline) {
	IsOnline = isOnline;
    }

    @Override
    public Serializable pkVal() {
	return this.id;
    }
}
